﻿using UnityEngine;
using UnityEditor;

namespace MassiveBattle.Controller.Editor
{
	[CustomEditor(typeof(BaseController), true)]
	public class MassiveBattleUnitControllerEditor : UnityEditor.Editor
	{
		public override void OnInspectorGUI()
		{
			var inst = target as BaseController;

			if (GUILayout.Button("삭제"))
				inst.Damage(int.MaxValue, false, null);

			if (GUI.changed)
				EditorUtility.SetDirty(inst);
		}
	}
}
